#ifndef __SOUND__
#define __SOUND__

/* Sampling frequency */
#define	SOUND_SAMPLE_FREQUENCY	8000
/* Buffer depth in milliseconds */
#define 	SOUND_BUFFER_DEPTH	10

/* Memory buffer size in samples */
extern int sound_channel_buf_size;

/* Initialization of ADC+DMA for sound capture */
void Sound_Initialize(void);

/* 
 * Poll whether we have buffer is ready for processing
 *  return 0 - if no buffers are ready
 *  if ready return address of buffer and remember this event
 */
unsigned short *Sound_PollBuffer(void);

#endif

